MinGW v3 bugfix