GUI: Fix compilation

This adds a missing header in the case #ifndef USE_TEXT_CONSOLE_FOR_DEBUGGER