Fixed Visual Studio warnings