Use min/max templated functions from std (part 1).
Use min/max templated functions from std (part 2).
Move `UndefinePreprocessorDefinitions` to common-thirdparty.props.