Don't depend on ejabberd/mongooseim
Add a pre-R16 compatible get_env/3