Add some IPv6 stuff to netinet/in.h.
Move initgroups outside of !_XOPEN_SOURCE.

It was put into newlib grp.h revision 1.2 by Edward M. Lee,
but every other system's grp.h I looked at doesn't do this.
Define SA_RESTART.