give MSVC a hint to not break the build, fdo#74042 related

... and be explicit about std::min() types.

Change-Id: I6a0dd499d1a29d389ee9da31b71639e3c7c1a6ae