Fixed a few warnings when compiling with Visual Studio 2013.

Fixed a few warnings when compiling with Visual Studio 2013.