build and install proper shared library