Gluon mass generation in the presence of dynamical quarks