Fixed Java 8 dependency.