libgdiplus: fix build against giflib 5.*