Fixed CMakeLists.txt for Darwin