Fixed warnings with VC++.