fixed anonymous mmap for MacOS