Updated build for new MGI formats.