fix signatures of mmap-related functions from libc