Fixed MSVC 2008 warnings.