Add support for compiling gdb
Build gdb along with debug builds.