Fix console issues on Windows

On windows, there were no console where the output from printf()s would end --
even if you specify the application type to be "Console" from project
settings. The fix:

* Use AllocConsole() to force creating a text console.
* And use application type console for both Debug and Release (that's what
  the cryptic change in trinity-win32.cbp does).