Fixed incompatibilities between Windows.h and Qt 5 (NOMINMAX).