Fixed gcc compilation