toolchain: Fix glibc selection on ARC targets