fix build error at old libcurl