fixing shmmap on mac (kind of)