Update gdb to run in batch mode and valgrind to list errors
Remove stub generator patch for freeing created namespace

This patch was causing errors and freeing memory that was
used at a later stage, causing undefined behaviour.
Regenerated stubs without freeing namespace