sys/mman.h functions compat improvements