Merge pull request #2455 from hundeboll/nominmax

cmake: disable min() and max() macros in windows.h