Fix gcc compilation warnings