fix build

ifdef this var declaration to avoid the vs warning