Make build more robust to missing GIF library