remove pragma pack by replacing sizeof() with precomputed sizes "on the wire"