Build Emacs with libxml and optionally GNUTLS

Also declare automake/autoconf as build deps