add a utility function to find library for a given label