Fixed deadlock in WSNio using WSS.

Added minimum compilation environment of JDK7 (pending a way to
structure the classes without this need)