[fix][build] fixed the way that the library information are passed