Fixed cmake configuration for SSL support