fixing packing of structures to work between architectures