Initial Windows and Cygwin support

See #1 for details.