We discovered in the past that the C++ API for GSource/Glib::Source has some fatal and unfixable flaws. Copy similar code and just use the C API for GSource instead