fix build for jdk8