Fixing gui compilation with Java 8