Refactor: include: Run test-headers.sh on internal header files.
Update all guards to use the standard naming convention, and add missing includes where necessary to make sure the test passes.
Fixes T325