Fixed the build error using gcc 13