Fix compile errors with older GCC versions