Solaris' hstrerror lives in libresolv, not libc

This doesn't build on Solaris, as it needs to link against libresolv to call hstrerror(3).