Implements setgroups

Also, there were a few type warnings in `tests/unistd/misc.c`,
and `system/include/sys/un.h` needed the `socket.h` for `sa_family_t`.