Hide the console on Windows unless --debug is set.