Fixed POM issues to compile with Java 7