Mac build script using CMake