Integration with nupic.core API

These changes allow that CMake builds <code>nupic.core</code> and links its output (<code>libnupic.core.a</code>) to <code>nupic</code> subprojects.

This depends of https://github.com/numenta/nupic.core/pull/47 (at least depends of the SHA)