Windows: Check if stdin has data before reading