The Gates Foundation plans up to 500 job cuts in the coming years as it ramps up annual giving before its 2045 closure.