Fix build for giflib-5.1.