Use curl_error instead of strerror, to better support legacy clients