Calculation of the Helmholtz free energy with approximate Green's functions