Support compiling on Mac OS X