Making project java 1.7 compliant