Simplifications to global.h

New script to do renaming to C++ files.
First attempt at conversion to C++
Starting C++ fixes.
More changes for C++
Small change to conversion script
Fixes for more C++ stuff
Add comments.
Improvements to the conversion script.
Up to detect.cc
More fixes.
More fixes for C++
Fixed more files.
More fixes.
Fixes.
Lots of fixed files.
Even more fixes.
More fixes.
Further fixes.
Fixed the rest of the src directory.
Further fixes. I think we're good for now!