Correctly setting ld library path for gdb.