Change pom.xml to compile in java 1.7