[LIBREPORT PATCH] add missing compiler flags for g_type_init()