Fixed warnings on VC++.