Change all of the build flags to switch /MD and /MDd into /MT, instead of just some of the targets. Fixes PR21241.