Progress!
I got the game to load after removing an #include statement for a script that was not being used.

It seems to work fine now, but when I press "esc" to open the menu, the game crashes. Again, the menu works fine when I run through WED.

I noticed that two of the default scripts include an on_esc command. Could this be the issue?

One is in default.c (which I removed from my script) and the other is in avars.h, which I have no idea as to its function.