Minor portability update to c_rehash.