Added dependencies support for load_lib.