[LIBREPORT PATCH] add helper function for GLib initialization