Fix MSVC link error
better compilation under windows