fix compiling error in vs project on win7.