fix build for java8