work around incorrect EPERM from mmap syscall