Add support for building with libcurl-dependent stuff disabled.