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

Change-Id: I93c8fc238cc2654346bbc69a9d8ea83d1c0b099e
Refs: #3076, #4462
diff --git a/wscript b/wscript
index 809f5c6..5b9b8f8 100644
--- a/wscript
+++ b/wscript
@@ -185,7 +185,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')