switch project compatibility to Java 8