ensure jdk1.6 compat