build+tests: Fixing c++11 mode compilation and correcting integrated test with faces

Change-Id: I32e34d6b2ee8cfd85ec83f62323dd7a51f2238d6
diff --git a/tests/security/test-certificate-cache.cpp b/tests/security/test-certificate-cache.cpp
index 2f8c1a2..e12e0e0 100644
--- a/tests/security/test-certificate-cache.cpp
+++ b/tests/security/test-certificate-cache.cpp
@@ -38,7 +38,7 @@
 {
   boost::asio::io_service io;
   shared_ptr<CertificateCacheTtl> cache =
-    make_shared<CertificateCacheTtl>(boost::ref(io), time::seconds(1));
+    make_shared<CertificateCacheTtl>(ref(io), time::seconds(1));
   Scheduler scheduler(io);
 
   shared_ptr<IdentityCertificate> cert1 = make_shared<IdentityCertificate>();
diff --git a/tests/util/test-regex.cpp b/tests/util/test-regex.cpp
index 2d4bd55..6feb6ef 100644
--- a/tests/util/test-regex.cpp
+++ b/tests/util/test-regex.cpp
@@ -262,7 +262,7 @@
 
   shared_ptr<RegexBackrefManager> backRef = make_shared<RegexBackrefManager>();
   shared_ptr<RegexBackrefMatcher> cm = make_shared<RegexBackrefMatcher>("(<a><b>)", backRef);
-  backRef->pushRef(boost::static_pointer_cast<RegexMatcher>(cm));
+  backRef->pushRef(static_pointer_cast<RegexMatcher>(cm));
   cm->lateCompile();
   bool res = cm->match(Name("/a/b/c"), 0, 2);
   BOOST_CHECK_EQUAL(res, true);