fixed build for java8