Added STDIN support on Windows