Now it can at least handle the simplest XCF files I have.
Biggest difference seems to be that they changed to 64bit for offsets from version 11 and upwards.
Still some issues with more complex layers (aka. not completely plain images), but this is better than nothing.