build.sh switched to use cmake

Per Issue #677
Merge pull request #681 from subutai/buildsh_changes

build.sh switched to use cmake
Merge branch 'master' of github.com:numenta/nupic