fix link bug for msvc