Fixed server compilation errors