fixed windows mmap code