Implemented posix_getgrgid and posix_getgrnam

There are two failing test: one is for mac and should be skipped and the other seems correct but the `%a` formatting is consuming more/less than required.