Replace getline() by fgets() because the former doesn't exist in Solaris <11
Replace getline() by fgets() because the former doesn't exist in Solaris <11

Fixes #537

google/google-authenticator-libpam,google/google-authenticator-libpam,google/google-authenticator-libpam,google/google-authenticator-libpam