Global bifurcation of limit cycles in a family of polynomial systems