Enable Mac OS X builds with CMake