[libvirt] [PATCHv2 27/27] build: add syntax check for proper flags use