Free energies from integral equation theories: enforcing path independence.