mke2fs, libext2fs: fix bugs on windows
am: bc237175f9

Change-Id: I7f15f1895d105a7bd8fa061b540231a56cd6201b