Fix compilation of static visitors on GCC4.5.1