fix compilation with giflib >= 4.2.0