(3) add needed GLib headers, move loop and bus descr out of main into global