defined NOMINMAX for release build