Fixed server code to compile with Xcode 6 Beta 6.