Enable compilation with JDK 8

2 commits which enable the compilation with a JDK 8

Regardless of the source level I was unable to compile Errai with a JDK 8. This PR fixes these problems.
This will cause a build failure on older JDKs because the property doesn't exist there. I configured it not to stop the build.