fix VC++ warnings