Fixed server compile problems