Fixed client re-initialization and server compiler warnings.