Fix incorrect file protection flags on Windows.