fix curl for cpp11 branch