Server compilation fixes