Add support for building on Mac OS X.