Added support for building on OSX