MSVC linking improvements