Add explicit dependency on Java 7