Provide a way to show a console on Windows
Created by: christopho
On windows, a program can either be a console application or a GUI application. If solarus is compiled as a console application, a console pops and we don't want that for players. If solarus is compiled as a GUI application, no output is available (no stdin, stdout or stderr), even if you run it from a console. This is a problem for quest makers who want to debug their scripts.
Therefore, we should add a runtime option to pop a console on windows (default would be false). And maybe an option in quest.dat, and/or a Lua function sol.main.create_console().
The problem is that all of this will be windows-specific, because on decent systems, GUI applications show their output in the console they were launched from, if any, and don't create a console otherwise.