Make shm_numpy compatible with os x.