Added changes to be compatible with new version of libminc