made the port part of the -r option optional. Needed for backward compatibility with sysklogd
replaced system() calls with something more reasonable. Please note that this might break compatibility with some existing configuration files. We accept this in favor of the gained security.
removed a memory leak that could occur if timegenerated was used in RFC 3164 format in templates
did some preparation in msg.c for advanced multithreading - placed the hooks, but not yet any active code