Build cppregion as shared instead of dynamic library

DEPENDS https://github.com/numenta/nupic.core/pull/270