erofs-utils: fix macOS build & functionality

Tested on macOS Big Sur 11.4.

Link: https://lore.kernel.org/r/20210724133203.178109-1-hsiangkao@linux.alibaba.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
13 files changed