Cleaned up my C server a bit

Not sure if it will run on OSX, since I'm working on Linux (and the OSX stuff generally isn't working on Linux).