Only using the CURLOPT_RESOLVE constant if defined (for old libcurl versions).