Now fully compiling on OS X but don't expect it to run, also CMake configuration file could use some cleaning up