Revert "Replace some globals with library specific static variables"

This reverts commit 2804cde754c5c42a55271139e23be28a279fcffc.

Getters and setters cause name-space and code explosion.
They are evil beyond compare
Fix compile warning
Move log configuration to structure in log.c

So that other programs can now use / link to it.

This is the first step in creating a library around the
common server source files
Use "-D share", now that we need it
Only set dictionary_dir if it wasn't already set