Dilute resonating gases and the third virial coefficient