Switch libxml and libcurl to use PKG_PROG_PKG_CONFIG and PKG_CHECK_MODULES

Preference is still to xml2-config and curl-config unless
--with-curl-config=no --with-xml2-config=no are used