extract OpenSSL loading into vendored_persistent

closes #2284