Compile fails when CONFIG_INTERNAL_STATS flag is set. Change-Id: Iba7701c058169ca3fc0b9008619ac55a1fe1a8b6