Emittance control in the presence of collective effects in the fermi@elettra free electron laser linac driver