How to build dependent packages