Solaris: older versions of solaris needs to link with nsl/socket