fix library dependency -- build order