fix broken java8 build