Added windows/cygwin support.