Don't use std::min.

There is no existing use in cmake, so I suspect it wouldn't pass
the dashboard.
Merge topic 'fix-genex-preprocess' into next

908b864 Don't use std::min.