Remove ancient curl compatibility stuff. This fixes build with curl 7.37.1 on Fedora 22/rawhide.