quick'n'dirty MinGW compatibility