Properly handle read-write/read-only windows<->posix (fixes #236)