multi thread support if GLIB version < 2.32

If you use GLib from more than one thread, you must initialize the thread system by calling g_thread_init().
https://developer.gnome.org/glib/stable/glib-Deprecated-Thread-APIs.html#g-thread-init