Fix compilation warnings in mh.c