Fix warnings on older GCC versions