closed #4410: use martell's libcurl and remove this