updates to the makefile

I also set up for the thread management in include/threading.hpp and
modified include/engine.hpp a little