Includes some fixes for compile errors/warnings in examples.
Generating using convert_to_cmake.py, with some minor cleanup