Fix java6 compilation