Add support for giflib >= 5
Remove deprecated function 'png_set_gray_1_2_4_to_8()'