[Bug 35631] Add giflib support