ensure jdk7 is used for compiling