gcc: fix build error with macOS + Xcode 9