eal/windows: fix linkage with MinGW