Fixing mac / cygwin compatibility. Issue #4.