Fix gdb and valgrind target