Fixed compilation issues on Linux
Added CMake stuff for examples