Don't use console output on windows

This disables creating new console window if the application is not run
from command line. Unfortunately, output is also disabled if app is
started from command line.