Add OS X platform specific code