Add support for building on Mac.