Updated CMakeLists.txt for mac build