Enforce Java 8 compatibility