Fix console output for MinGW compilers
Fix console output for MinGW compilers

Reworked patch from @jay3d (#7116).
(cherry picked from commit f28ff8a20888f49cc744d0cc3b8455cfb1cf6874)

pixelpicosean/my-godot-2.1,pixelpicosean/my-godot-2.1,pixelpicosean/my-godot-2.1,pixelpicosean/my-godot-2.1,pixelpicosean/my-godot-2.1