[msvc] Work around strange scoping and name mangling rules.