Use correct type when unsetting CURLOPT_SHARE (CURLSH *, not long).