Some Mac fixes and rlSharedMemory mutex fix