configure: _XOPEN_SOURCE=500 to be like _GNU_SOURCE=1
priv: use AF_UNIX for socketpair()

This is a synonym of AF_LOCAL but it seems more widely known (for
example, on HP-UX).