fix cyclic dependency on MSVC with SharedRepository