Portable getline

no need defined GNU stuff, a portable getline.