Added language-level configuration to pom.xml to fix Travis build.