G20 wrestles with wars, climate in run-up to Trump