Fix compile error on newer GCC versions