WINVER fixes for MinGW and VC++.