build: require gcc >= 5.3 and switch to C++14

Change-Id: Ifb805ced42e9f8aedce473c1fe91f68b27acefec
Refs: #3076, #4462
diff --git a/wscript b/wscript
index fa2864b..e40914f 100644
--- a/wscript
+++ b/wscript
@@ -140,7 +140,7 @@
             else:
                 # no tags matched
                 Context.g_module.VERSION = '%s-commit-%s' % (VERSION_BASE, out)
-    except subprocess.CalledProcessError:
+    except (OSError, subprocess.CalledProcessError):
         pass
 
     versionFile = ctx.path.find_node('VERSION')