use big/little endian detection from configure instead of __BYTE_ORDER (fixes compilation on Darwin)