switch to GLib's GMainLoop
Merge branch 'master' into yavdr
add libavahi-glib-dev as build dependency