Move 'serverMode' flag from server.c to log.c

Because log.c and conf.c now depend on serverMode
Fix broken 'make directory_service'
Fix broken Android build