Fixed some client compilation warnings.