Add openssl to external packages and remove gnutls
workaround to allow MacOS to statically link openssl
Merge branch openssl into v1.15.x

Review 2101 by @larkost
Closes #2676
Closes #2949