mke2fs, libext2fs: fix bugs on windows am: bc237175f9
am: 8438955e8b

Change-Id: Ib9f753417381823fdbdc91c1a2c0ccdf2c975f40