Redirecting standard output to console in Windows