How to handle circular build dependencies?