This patch fixes a few (recently added) errors that prevented gem5 from compiling on more recent versions of gcc and clang.