Added NOMINMAX before windows.h include.