MIPS64: Fix build for Mac, and silence some warnings.
MIPS64: fix a usage of li() that took 32-bit immediate.
MIPS64: fix errors.