Fix build error with gcc