fix big-endian build