fixed the bug in which g_thread_init() is missing on the platform whose GLIB version is less 2.32 (#7).

This changes are originally pushed by Kazuhiro Yamato as d3fa5a1098d89bff5d382798e1404e2abf6db73c.