FIX for MSVC inline fmax in dist_metrics