toolchain: fix selecting older gcc versions for x86