Also fix glog/gflag includes and sorting in examples. Change-Id: Ie07563b99cbb9172c941bb8f5fb7decb95fbb5d1