build: Add optional pthread flag when detecting Crypto++

This commit also includes a small fix to support Python3

Change-Id: Ifa0c547bd872ab749745b5bdc778d4b3269bb87e
Refs: #1590
diff --git a/tools/wscript b/tools/wscript
index eaa35cc..21671c6 100644
--- a/tools/wscript
+++ b/tools/wscript
@@ -1,5 +1,7 @@
 # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
 
+from waflib import Utils
+
 top = '..'
 
 def configure(conf):
@@ -13,10 +15,10 @@
             use = 'ndn-cxx',
             )
 
-    bld (features = "subst",
-         source = bld.path.ant_glob(['wrapper/*.sh']),
-         target = ['%s' % node.change_ext('', '.sh')
-                   for node in bld.path.ant_glob(['wrapper/*.sh'])],
-         install_path = "${BINDIR}",
-         chmod = 0755,
-        )
+    bld(features = "subst",
+        source = bld.path.ant_glob(['wrapper/*.sh']),
+        target = ['%s' % node.change_ext('', '.sh')
+                  for node in bld.path.ant_glob(['wrapper/*.sh'])],
+        install_path = "${BINDIR}",
+        chmod = Utils.O755,
+       )