Don't try to link the old shared libraries

Change-Id: Ifd4b5c320113b2102fd8d2af9629deb12350cfc2