Fix build with JDK 8

+ update language to 1.6