Check for curl version before accessing options

A recent pull request (#105), added some curl options that are not configured on older versions of curl (http://php.net/manual/en/function.curl-setopt.php). I added a check to set these options only if the curl version is high enough.