Support windows console output
Merge pull request #226 from geek/master

Support windows console output