fix client compile issues.