Fix libcurl issues