[PATCH] support older versions of libcurl