"The proper solution would be to find the code that does this, and remove it." That is incorrect, the engine will not build with that code removed. The proper fix is to rebuild the engine with debugging turned off (e.g. use the -DNDEBUG compile flag). The new upstream version does not appear to have this issue.