fixed MemoryMappedFileReader code for POSIX