Fix CMake files.
Add temporary fix for build.
Merge pull request #1 from manueljacob/master

Apply pull request from Manuel.  Changes include:
- Support for the cmake build system
- Moving a symbol definition to avoid a link time issue with llvm-nm (which, oddly, only Manuel sees)