ifdefs to avoid compilation breakage when using old cURL. Patch for #16.

Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>