fix flawed install procedure for shared libraries

(wildcards are expanded when the Makefile is read, before the files
in question are created)