Use g_printerr instead of g_warning