Ported over os_mac.h