fixed ambiguity for GCC 4.
removed unnecessary include for libcurl >= 7.