Add the prefix '-Wl,' to static library names to keep them before shared library names after libtool's command line reorderings. Fixes #1928