fix shared library problems on windows