Link correctly against a non-installed libcurl.