That did it. Ultimately, it looks to me like the compiler was the problem. My original v5.1 does not support the _mpyidll intrinsic. v6.0.8 is supposed to support it, but in reality it does not. But v6.0.31 really does support it.
Thanks George, RandyP and Archaeologist for your help!
Matt