adapted cmakeLists to work on os x