Trends in executive compensation are changing in response to pressure from both the public and investors. Companies have started rewarding the C-suite for hitting marks on ESG measures.