Fix compilation errors for dedicated server