Fix compilation on Java6.