more fixes, added initial CMakeList for building the examples