fixed compilation with gcc.