Fix recursive API dependency resolution. Allows nested APIs, such as BuildCraft's