Enforce java version to be <= 1.6 before ant build. Don't rely on the
source and target because we need bootstrapclasspth too for it to work
properly.