Fixed typos in three #endif /* MCS_<function_name> */ lines