Start the change of engine.c to cpp.
Changes necessary for compilation and linking using engine.cpp