Use in-built Visual Studio support for build configurations.

This makes it easier to build a matrix with Appveyor than by specifying it manually.