added g_type_init() for the platform whose glib version is below 2.36 such as CentOS 6.3.