toolchain/gdb: add pthread to CFLAGS/LDFLAGS for zstd