Make extension compatible with manifest 2.