[buildfix] Anything to declare?

Declares all the variables to the defaults I had available and includes
debug.h so Code::Blocks stops whining about DebugLog not being declared.

May not be the most elegant solution, but wev.
Merge pull request #7840 from KA101/FixWinCurses

[buildfix] Anything to declare?