Tidying/formatting code and fixing missing macro usage

POSIX had a couple of files out of date with regards to the command declaration macros which needed to be fixed. The rest of this PR consists of changes to formatting that I made while investigating the POSIX sniffer extension issues. Many were made thanks to auto-formatting in VS.

Nothing huge here, but worth including.