Update CMakeLists.txt to support OS X 10.7 and up