Upgrade Ninja version to 1.4.0 and package version as well

Upgrade the Ninja version to 1.4.0

### Reason
The newer Ninja has a fix for Ninja not building on Mavericks OS X

### Issue
Solves Ninja issue: https://github.com/martine/ninja/issues/600?source=cc