toolchain/gdb: fix broken configure test for ELF support