Made compatible with Cygwin