pdbtool: don't use a local variable outside the block it was declared in

It seems that newer gccs (rightfully) don't like the fact that pdbtool
was using an array outside of the block it defined it in. This patch moves
the args[] array to the function scope to avoid that.

Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>
afprog: Set the process group of the created child

When forking off a child process, set its process group to its PID, so
killing the whole process group in deinit will work. This means that
programs started by the program() source or destination() are now
correctly terminated on reload and exit.

Reported-by: Ryan Frederick
Signed-off-by: Gergely Nagy <algernon@balabit.hu>