compat/bswap.h: fix endianness detection