Fixed compilation errors with giflib 5

https://build.opensuse.org/package/view_file/Mono:Factory/libgdiplus0/libgdiplus0-giflib5.patch