Updated mbr.c for gpt patching