Cofactors and equilibria for polynomial vector fields