Change to using #if defined(PLATFORM_MACOSX) || defined(PLATFORM_BSD)