Add XPM support to Emacs build.