windows compatibility for STDIN and gets