Compile update_engine with C++11 standard.

In order to use the new C++11 features in update_engine, we need to
compile update_engine in C++11 mode. dbus-binding-tool generates code
using the deprecated "register" keyword, so this patch also ignores
that warning.

BUG=None
TEST=existing unittest passing.

Change-Id: Id086818fbb34779a5e2cda404673936620181070
Reviewed-on: https://chromium-review.googlesource.com/186385
Reviewed-by: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
diff --git a/SConstruct b/SConstruct
index 489f956..d4057c7 100644
--- a/SConstruct
+++ b/SConstruct
@@ -136,12 +136,14 @@
 env['CCFLAGS'] = ' '.join("""-g
                              -fno-exceptions
                              -fno-strict-aliasing
+                             -std=gnu++11
                              -Wall
                              -Wclobbered
                              -Wempty-body
                              -Werror
                              -Wignored-qualifiers
                              -Wmissing-field-initializers
+                             -Wno-deprecated-register
                              -Wno-format
                              -Wsign-compare
                              -Wtype-limits
@@ -190,7 +192,9 @@
 env.PublicKey('unittest_key.pub.pem', 'unittest_key.pem')
 env.PublicKey('unittest_key2.pub.pem', 'unittest_key2.pem')
 
-env.DbusBindings('update_engine.dbusclient.h', 'update_engine.xml')
+# Target name is derived from the source .xml filename. The passed name is
+# unused.
+env.DbusBindings(None, 'update_engine.xml')
 
 if ARGUMENTS.get('debug', 0):
   env['CCFLAGS'] += ['-fprofile-arcs', '-ftest-coverage']