fix linking error for msvc