fix java8 build