FEAT: preliminary support for Windows platform
Merge pull request #799 from qtxie/new-console-windows

FEAT: preliminary support for Windows platform