JBMAR-160: fixes for JDK 8

https://issues.jboss.org/browse/JBMAR-160
``$ JAVA_HOME=/opt/oracle/jdk1.8.0 mvn clean test -Dtest=SimpleMarshallerTests -DfailIfNoTests=false``