Base the user-agent on current version of libcurl

Previously the user-agent string was based on the compiled version of
libcurl.