fix some problem in vc++