native: workaround for missing __builtin_bswap16