make compile on Java6