Fix minor issues while compiling in Windows
Fix warnings in while compiling in C++
Update Visual Studio projects to use C++ instead of C compiler