Fix build with JDK 8

+ also update language to 1.6