build: set PLATFORM_OSX on macOS
Since this will add some objective-c code to the build, compilation must then occur with the -xobjective-c flag.
Since this will add some objective-c code to the build, compilation must then occur with the -xobjective-c flag.