[libvirt] [PATCH] build: avoid obsolete index()