Add support for Mac OSX