Cmake compile fix for when OpenSSL is turned off