Remove deprecated calls to GLib and GObject threads_init