Get jboss modules compiling on JDK 6

EAP does not build since the current 1.3.0.Beta3 has been compiled using JDK 7.
There are some constructs in the code which do not work with source/target=1.6, which I have cleaned up