closed #4410: use martell's libcurl and transfer to static library