[CMakeLists] Added NOMINMAX definition

Added definition for windows platform, where you got error because min()
max() were defined as macros in windows.h