Link against libsocket for connect(2) on solaris