Avoid using memory mapped buffers on Windows, they just keep the file locked and there is no reliable way to un-map them