Gstreamer glib event loop for macos and windows
GStreamer requires a glib event loop / main loop to be running for bus stuff to work correctly. By default, qt creates one of these on linux systems (and probably BSD as well) but not on macOS or windows. This creates a separate glib main loop for macOS and windows so that gstreamer works as expected.