Added CMakeLists.txt to build C++ subproject
Fixed Mac build
Merge pull request #24 from antmd/cmake

Cmake build and Fix for Mac