endian: use BSWAP_*() macros on Solaris.