Testing the compilation when wxUSE_GUI=1.
Manually added back some includes to get more to compile. Removed code that was in _base header.
Added many mozilla_chardet files back to the project and enabled compiling of many sdk files.
Finally got the last mozilla_chardet link error fixed; still has link errors related to plugin and script managers.
Removed wrong include of projectoptionsdlg.h.