Fix compile warnings in client