Fix for older versions of cURL

This is basically the same fix as https://github.com/guzzle/guzzle/pull/463, since that didn't get into the new RingPHP codebase :)