configure.ac: Check for libsocket and libresolv for Solaris compatibility