add mmap functions, fix fnv hash for zero length on null pointer