This series of patches makes gtk3-demo run on situations where client and server run on architectures with different byte order. Tested on i386/sparc64 and i386/powerpc in both directions.