Addressing legit warnings No5. mingw

Removed warnings same way as in  prev rounds.
Look for the word 'Microsoft' for an example on how broken vendor API gives error in the code.