arm: fix compile on bigendian host