Fixed warnings on Visual C++ 2010.