Added pragma pack macros and __attribute__((packed)) to conversions