Add gdb script, fix some minor warnings