mh_xstrdup arguments now const