Fix build error for toolchin upgrade (GCC6->GCC9)