Add MIN if not defined.
Solves build for windows.