Added missing global.cpp to compilation
Added include compilation test for global.hpp
Removed unnecessary includes