Remove other shared lib names from linker command line for shared libs