Modified files so that CMake works on Windows.

On Windows extra steps are required. See the README. I found that nmake
works if VS vars are set.