War, Rivalry, and State Building in Latin America