On the equivalence between KMS-states and equilibrium states for classical systems