mke2fs, libext2fs: fix bugs on windows am: bc237175f9 am: 40ee873515
am: b88259f118

Change-Id: I4496045273c309695f9b62000204177f85f6f33f