Build a shared library; install to the right places