shill: redirect stderr to syslog

This is primarily driven by libdbus, which will sometimes log messages
to stderr before calling abort(). It may also be useful to capture
messages from some other processes that we fork.

BUG=chromium-os:31205
TEST=manual

Manual testing: recompile with fprintf(stderr, ...) added to main,
verify messages shows up in syslog.

Collateral changes:
- remove some unneeded std:: prefixes
- quiet stderr output of dhcpcd (some messages were being sent
  to both syslog and stderr)

Change-Id: I5440e165557bd61e2174c5d499d499d1af2bdb51
Reviewed-on: https://gerrit.chromium.org/gerrit/23912
Commit-Ready: mukesh agrawal <quiche@chromium.org>
Reviewed-by: mukesh agrawal <quiche@chromium.org>
Tested-by: mukesh agrawal <quiche@chromium.org>
diff --git a/dhcp_config.cc b/dhcp_config.cc
index ab58d1a..ad7a4a8 100644
--- a/dhcp_config.cc
+++ b/dhcp_config.cc
@@ -164,6 +164,7 @@
   vector<char *> args;
   args.push_back(const_cast<char *>(kDHCPCDPath));
   args.push_back(const_cast<char *>("-B"));  // Run in foreground.
+  args.push_back(const_cast<char *>("-q"));  // Only warnings+errors to stderr.
   if (!request_hostname_.empty()) {
     args.push_back(const_cast<char *>("-h"));  // Request hostname from server.
     args.push_back(const_cast<char *>(request_hostname_.c_str()));