Fix 32-bit error in uint128 to bigint conversion, move bswap_64 into its own header file