Support for Mac OS X in native code compilation