Fix build for no libcurl