add libcurl build
fix build issues