Fix declaration of getgrgid

Seems to have escaped my tests, as well as the manual review in the original version.