patches for libgdiplus, could be removed by the upgrade of gif_lib.