Add support for Mac OS.