Fixed VC++ warnings.