Patched to fix build failure with giflib-5.1 & libpng16 (-current). Signed-off-by: David Spencer <baildon.research@googlemail.com>