CMake build support on OSX