c: gcc_struct attribute is only supported for x86

Also this workaround is required for MinGW only.
c: Add static asserts to check size of packed structs