Adds stage libraries as dependencies to distribution to ensure build order. Adds remaining stage libraries to distribution as well.