Add a few functions and network headers

These changes enable us to compile my Xen version of libsepol against minlibc.  Hooray!