Allow to build with Java 1.7