Fixed some warnings in MSVC 2012.