Added code to handle warning messages for the paperHeader.pg file
as well as the problems.
Made sure that the warning messages are protected for TeX ONLY when
the output will be hard copy (i.e. when the list @PG_COMPILE_ERRORS
is empty.) otherwise the warning messages are left as HTML