Fixed ability to build on OSX