Updated Makefiles & CMakeLists.txt for example C++ apps