As Brazil manages its rivers, they are having a global impact.