configure: use pkg-config to detect libcurl & openssl