Use CMake instead of Visual Studio projects.

This will make it easier to maintain the build system in general,
including switching to newer versions of Visual Studio and possibly
using gcc (MinGW).