change type of varfactory to facillitate windows build
removed DEBUG symbol