Hacked CMakeLists.txt to let CMake function under Mac OS X, compilation still not tested