* libmisc/chowntty.c: Reuse getgr_nam_gid(), and get rid of atol().
libmisc/Makefile.am, lib/prototypes.h: Moved getgr_nam_gid() from src/useradd.c and src/usermod.c to libmisc/getgr_nam_gid.c.