Fix resolving build dependencies.