Link libsocket on Illumos/Solaris