Glib threads init