OSX fix. Using dispatch for shmem.