fix build regression on mips64 due to endian.h removal