Earth mover's distance-related build stuff