fix build errors in eclipse