Home countries of major rainforests agree to work together