Initial server setup. Debugging fails on Ubuntu now :(
Merge and edit makefile to include pthread, though it does not seem to include it....