Fixed compilation Errors of mc.c