fix a build error in GNU gcc 4.2