*WIP* Use min/max templated functions from std

TODO:

Figure out a clean way so that we don't get the `D9025: overriding '/DNOMINMAX' with '/UNOMINMAX'` warning.

One possible solution is to duplicate common.props and just not define `NOMINMAX` there. But I'm not very keen of duplicating stuff. Any ideas are welcome.