Allowing builds with gcc 4.9.  Fixing os version detection when no minor
version is available (e.g. jessie)