Update find_library to be more flexible.