Support building with Java8