Add support for compiling on Mac OS X