Added getline compatibility for Linux, Apple, and Windows