Duality of Lipschitz classes on compact metric spaces