fixed compilation on gcc.