Fix build of project with jdk1.8