changed loading of dynamic library to use find_library