Oh dear. I had completely forgot that that I had filed that bug report last time I came across the error (I moved by build to use libungif after that and didn't may much attention to it until now).
Now I feel somewhat guilt at having wasted people's time on this. I do apologise for that.
Regards,
Elias