Allow to run with Java 7