[gem5] Fix bug in SConstruct to enable compilation with clang.