Fix stdin error on Windows