Port to OS X
Using CMake for build configuration