Get CMake working on with OSX build