Use std:min instead of fminl

Fixes build error on Windows with msvc.