added getline for compiling on windows