windows: support old MinGW w64 that is shipped on Ubuntu 14.10