Fix build on gcc-based archs.
Also tested on amd64.
PR: 231597 Submitted by: Piotr Kubaj Approved by: portmgr (tier-2 blanket)