AppVeyor configuration (CI for Windows)

Basic AppVeyor configuration for Windows, based on @fdopen's patch for Windows support (#190).

This currently uses Cygwin, but we should switch to using MinGW/MSYS.

Current status: the library builds, but many of the tests fail.