A wrapper around mmap (Linux) / CreateFileMapping (win32)