Fix Makefiles, a typo that stopped the project from building and actually removing the old headers.
Split global variables to a header, except szBOM*, I'll deal with them later.