simplified function to find the shared library.