Just a guess, but "drawgfx.c" kinda sounds like an important part of the Mame - you probably don't want to skip it.
I've never compiled the DOS version, but if your compiler is crashing then you should probably check to make sure that you are using the correct version of the compiler & related software for such an old version of Mame.