fix #25666: fix warning reg. ignored dllimport
Merge pull request #893 from Jojo-Schmitz/25666-link-under-windows

fix #25666: fix warnings reg. ignored dllimport