two fixes for "make install" handling of shared libs