Fix build on gcc-based architectures.
PR: 236695 Submitted by: Piotr Kubaj <pkubaj@anongoth.pl> MFH: 2019Q2