adding cygwin support (TODO: testing it)