Add version check to gdb and only enable --nh when available