Fix maven not building with java 7