Allow compilation on Java 8