Add test in common headers for improper inclusion of such files in appli...

...cation.

(prevents inclusion and also issues warning)
Changes to some source files to remove references to common headers.
Changes to rng.h to make guard symbols the same in f2 and f4.