ENOKEY to EIO in libbootimg_load_header, restores build with mingw