Updated codebase to support compiling cpp version of pogs on OSX.