You didn't update your deps. Run make update or make distclean before rebuilding.
https://github.com/processone/ejabberd/issues/3146