Console wrapper for use in Win32 gui applications.