those commits workarounded some errors: when i remove the commits touching build.sh, in run_tests.sh i get 
==================================================================================== ERRORS ====================================================================================
_________________________________________________ ERROR collecting tests/unit/py2/nupic/algorithms/cla_classifier_diff_test.py _________________________________________________
tests/unit/py2/nupic/algorithms/cla_classifier_diff_test.py:27: in <module>
>   from nupic.algorithms.cla_classifier_diff import CLAClassifierDiff
../../nta/eng/lib/python2.7/site-packages/nupic/__init__.py:25: in <module>
>     from nupic.bindings import engine_internal
../../nta/eng/lib/python2.7/site-packages/nupic/bindings/engine_internal.py:6: in <module>
>   import _engine_internal
E   ImportError: numpy.core.multiarray failed to import
------------------------------------------------------------------------------- Captured stderr --------------------------------------------------------------------------------
/home/marek/nta/eng/lib/python2.7/site-packages/numpy/random/__init__.py:87: RuntimeWarning: compiletime version 2.6 of module 'mtrand' does not match runtime version 2.7
  from mtrand import *
RuntimeError: module compiled against API version 7 but this version of numpy is 6
___________________________________________ ERROR collecting tests/unit/py2/nupic/frameworks/opf/clamodel_classifier_helper_test.py ____________________________________________
tests/unit/py2/nupic/frameworks/opf/clamodel_classifier_helper_test.py:44: in <module>
>   from nupic.frameworks.opf.modelfactory import ModelFactory
../../nta/eng/lib/python2.7/site-packages/nupic/frameworks/opf/modelfactory.py:28: in <module>
>   from clamodel import CLAModel
../../nta/eng/lib/python2.7/site-packages/nupic/frameworks/opf/clamodel.py:53: in <module>
>   from nupic.engine import Network
../../nta/eng/lib/python2.7/site-packages/nupic/engine/__init__.py:26: in <module>
>   import nupic.bindings.engine_internal as engine
E   AttributeError: 'module' object has no attribute 'bindings'
____________________________________________________ ERROR collecting tests/unit/py2/nupic/frameworks/opf/clamodel_test.py _____________________________________________________
tests/unit/py2/nupic/frameworks/opf/clamodel_test.py:27: in <module>
>   from nupic.frameworks.opf.clamodel import CLAModel
../../nta/eng/lib/python2.7/site-packages/nupic/frameworks/opf/clamodel.py:53: in <module>
>   from nupic.engine import Network
../../nta/eng/lib/python2.7/site-packages/nupic/engine/__init__.py:26: in <module>
>   import nupic.bindings.engine_internal as engine
E   AttributeError: 'module' object has no attribute 'bindings'