build: Fix boost and openssl detection scripts

Change-Id: I3a5ed9d589030454bde6e98ab2f1ad568e64adce
diff --git a/.waf-tools/boost.py b/.waf-tools/boost.py
index 2b4b05a..39b5446 100644
--- a/.waf-tools/boost.py
+++ b/.waf-tools/boost.py
@@ -147,7 +147,7 @@
 			re_but1 = re.compile('^#define\\s+BOOST_LIB_VERSION\\s+"(.*)"', re.M)
 			m1 = re_but1.search(txt)
 
-			re_but2 = re.compile('^#define\\s+BOOST_VERSION\\s+"(.*)"', re.M)
+			re_but2 = re.compile('^#define\\s+BOOST_VERSION\\s+(\\d*)', re.M)
 			m2 = re_but2.search(txt)
 
 			if m1 and m2:
diff --git a/.waf-tools/openssl.py b/.waf-tools/openssl.py
index 4a5c01f..eb85462 100644
--- a/.waf-tools/openssl.py
+++ b/.waf-tools/openssl.py
@@ -44,7 +44,7 @@
                        define_name='HAVE_%s' % var,
                        uselib_store=var,
                        mandatory=mandatory,
-                       cflags="-I%s/include" % root,
+                       cxxflags="-I%s/include" % root,
                        linkflags="-L%s/lib" % root,
                        fragment=CODE)
     else: