Add check to see if CURLOPT_PROTOCOLS is defined before using it. This