Fix g_type_init deprecation
Fix return value in void functions