fix platform specific shared library