Build and tests now succeed on windows under both cygwin and native (cmd).