Don't die if stdout is redirected

Fixes a bug where the program would call abort if the Windows Console
handle wasn't available.