The installed MSVC2013 redist already has a newer version (12.0.30501).
MSVC2017 redist was older than you mentioned, and I updated it to 14.16.27027 (newest one from Microsoft site), but that doesn't help.
Anyway, thanks for the help and for the MinGW build.