Answering my own question:
This person was kind enough to make a patch file for the game directory source code. Just download it and throw it in your game folder then use the patch command with it to patch the code. A make will make the so file needed for linux dedicated server.
On a side note I can't get it to compile under cygwin. It errors out when attempting to make all of the .o files. Any assistance would be wonderfull.