Fix compiling gdb with split-builds