TRQ-2411: print the header only once

- added global variable print_header for indication "need print header"
TRQ-2411: error info prints on bottom of output

Conflicts:

	src/cmds/qstat.c