Add a check for JDK8 as build requirement.
Set compiler version to 1.6.