gd: don't include png.h (breaks build on some old version), so report libPNG version only with external libgd