When feasible do this by adding -D_WANT_SEMUN to CFLAGS or CXXFLAGS.
Where this fails due to ports not honoring C*FLAGS, patch using
__FreeBSD_version to enable the definition.
NOTE: the patches currently use the un-updated __FreeBSD_version value.
This will be corrected at commit time.