xemacs 21.4.22 does not compile with libpng 1.5. This appears to be
fixed already in xemacs 21.5. Our downstream bug report:
https://bugs.gentoo.org/show_bug.cgi?id=384461
This includes a patch but that assumes our "large images" patch that we
also carry.