During build github repositories are cloned, to fix this a prepared tarball has to be provided. Running gmake deps after autoregen should fetch all dependencies.
The SQL update instructions are available in the files directory, install those under $(DESTDIR)/share/ejabberd