Override SSLSocketFactory to deal with limitations pre-Java 8
Workaround to deal with pre-JDK 8 issues.
Reflection workaround to deal with JDK-8022081.