Fixing OS X CMake build