Made ifdefs more clear (STANDALINE -> CLIENT / SERVER)
Only check for local gamemodes when compiled as client, fix segfault when n is invalid. Added debug possibilities, added server cmake