Build and install shared library