Fixed the build error for gcc-14