HDF5 1.12 build with Visual Studio 2019 causes missing "api-ms-win-*.dll" errors

I am building HDF5 1.12 with the Java interface, using MS Visual Studio 2019 on Windows 10. Everything builds, but when I try to run an application I get missing DLL errors for DLL files with names like "api-ms-win-core*.dll and “api-ms-win-crt*.dll”. Does anyone know how to get around this problem? Thanks.