first latin american country to have a railroad