fixed Endian macro workarounds