add support for auth-remote-user and fix for gcc install