fix build error for some eclipse version