Fixed a few warnings when compiling with Visual Studio 2013.