eal/windows: support building with MinGW-w64