ENH: fixes for cygwin build