work around buggy Linux use of endian defines