fix missing headers in the Makefile
fix old style C++ grammar, remove unnecessary white spaces
remove unnecessary white spaces
fix trying to render before initialize