fix curl compile error