build and install shared library