fixed gcc compilation