Made windows getline for cygwin more efficient