Fixed warnings on VC++.
8 files changed