- Use std::min/max instead of min/max macro in windef.h - Use mmsytem.h instead of timeapi.h with MinGW