Hey! cool thanks! the same fix worked in dosbox, wonder if you can take a look to make it more elegant.
I just did a search and replace for: GCC_ATTRIBUTE(packed); and replaced with: __attribute__((packed, gcc_struct)); 

Maybe you can come up with something better for that one?
Still I get segfaults when closing the core, but now I can load games just fine