Support OpenJDK 6 in WS SSL

Forward port of #3646.