Setting up compilation on a mac. Will need to fix CMakeLists.txt for other platforms later