Fixed shared library build