MSVC: don't opt into dyndep support Instead, just set the variables for how scanning works since that is part of the compiler mechanisms. Fixes: #24198