Fix building and add initial cmake files
Merge pull request #1 from gejza/cmake

Fix building and add initial cmake files