Standardize include sort, whitespace, add missing includes, explicit casts.