Fix build error on gcc