Wrote CMake build scripts & started porting library to OSX