Fix for MinGW-like consoles (win32);