fix compiling issue in ARM and i386