The software giant plans to make meeting diversity goals a factor in whether executives receive their full annual bonus.