CMakeLists.txt tweaked for OSX