Standardize include sort, white space, casts, add missing includes.

* VS static builds are fully-functional
* Centralized and simlpified cross-plat config reader
* Excluded `ec-add` as it doesn't compile (missing a `+=` definition)
* Standardized include sorts and white space
* Made implicit casts explicit
* Added missing includes
* Verified build and spot-checked features on windows x32/x64 and ubuntu