Fixes for Elixir within Cygwin

See #2597.