fix libcurl and build process