TS-3024: build with OPENSSL_NO_SSL_INTERN

Add in the -DOPENSSL_NO_SSL_INTERN flag for compiling and isolate
exceptions in SSLInternal.cc. This closes #138.