fix compiling error and miss file on vs.