Cleaned up warnings & NSAutoreleasePool

Fixed some warnings Xcode was giving me, and replaced the `NSAutoreleasePool` on the server thread with a more efficient `@autoreleasepool` (that also fixes a potential memory leak the analyser told me about, where the pool isn’t drained when the thread returns)