Fix cpio build on MinGW.

Exact same concept as the previous commit.