invalid initialization of mbstate_t instance was fixed (caused compilation error).