Fix warnings in client and server