fix padding bug, use #pragma pack instructions