MainFrm.cpp says:
extern UINT gnMidiImportSpeed;
That means "This variable is not declared in this module or in any included file, please look somewhere else". Not declaring variables is impossible in C(++) for a very good reason.
Those variables are actually declared in load_mid.cpp. The way they are declared (globally, not assigned to a class) makes me shiver a bit, though...