Updated configure with Ryan's cygwin workaround