Use mmap for shared memory instead of shmget