set XCODE_PLATFORM for MacOSX