(stats) Fix building with Xtend < 2.4