Fix root user warning running before g_type_init
closes #504