fix shared library build