Fix build error when compiling with older versions of gcc