closes github issue #189 (gcc 11.4.0 fails to build) and #190 with a backported fix that's now integrated. fixes build with a host gcc14's more restrictive default settings.