mips: fix swapping if running on big endian host