Update build config and code base to Java 8