Turns out we really do need libgd2-xpm.