Fixed searchservernew

The software now seems to work on Linux.
More testing will be needed though.

But... YAY!!!! :)