added SSL support to cmake build #869