Fix defect when only a single shared library is present.
Fix defect when only a single shared library is present.

KennethNielsen/SoCo,petteraas/SoCo,SoCo/SoCo,petteraas/SoCo,petteraas/SoCo,SoCo/SoCo,KennethNielsen/SoCo