Thank you Lawrence! I have tested your patch and it fixes the problem on my system. Since there hasn't been any response/action from the maintainer, I've filed a bug report (3534255) on the ZynAddSubFx SourceForge project page. I included your patch in the bug report, so hopefully this will be resolved upstream.
-David Hanson