fix gcc compilation warnings