Fix build on gcc-based archs.
Tested on powerpc64 and amd64.
While here, pet portlint.
Approved by: portmgr (tier-2 blanket)