Build fixes.
Don't use deprecated g_type_init().