Sadly, yes. HoMM II has two separate builds for DOS and Windows. Our code is based off the Windows one. We essentially include an automatically-modified version of the assembly code for that one.
It probably would be possible to do it for the DOS version, but you'd have to rewrite a fair bit of the magic that gets our code working with the original.