working mostly cygwin build