Style cleanup, mainly pointed by Sameer in Ceres's codereview
Fix compilation error with msvc2012

Using change from glog's upstream for this.