Added CMake for Windows.

Removed warnings, when building with Visual C++.