Add diagnostics for link following error on windows