cmake: OpenSSL is only required if we build curl