support shared library linking on other compilers than msvc