Fixed jdk6 build issues, and also permgen problem when running arquillian tests