Updated to avoid clang and added SSL support