Just a guess, Tom: did you do a complete rebuild? It's possible that some old compiled resource or object files were used in the link since an ordinary 'make' wouldn't have found them out of date.
Karl
One of the forum moderators AC 27 USA and earlier • macOS Ventura 13.6.9, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB