Allow enforcer to build with Java 8