[Bug 6857] New: Build errors with increased GCC strictness