Fix compile error with --enable-ans + --enable-accounting Change-Id: I43deba9c80b324c12852750d08c62dc2dd783835