Remove use of EXT (deprecated constant), formatting

- Removed use of the deprecated EXT constant from some files (ignoring
MX files at the moment)
- Formatting/code style updates in Profiler and template libraries.