[libvirt] [PATCH] build: hoist system-specific checks before library checks