Fix link errors due to missing bswap functions