mke2fs, libext2fs: fix bugs on windows
am: bc237175f9

Change-Id: I31b2a52fd4ff6ac8ec0fd388463ca8f9318cd33e