fix build errors on 32bit el5