Added mbstate_t