Structural change and cooperation in the global economy