GeglDistanceMetric has just been added as a public enum in GEGL. Basing our code on this, and getting rid of the newly added GimpDistanceMetric.