use MS Windows API for Unicode and/or stdout support
Merge pull request #826 from tim-caper/winconsole.c

use MS Windows API for Unicode and/or stdout support