Fix warnings on ARM and MIPS