cmake makefile for building on more platforms
Fix warnings given by clang
Merge branch 'unix_build'