Integration with nupic.core API

These changes allow that CMake build <core>nupic.core</core> and link its output (<code>libnupic.core.a</code>) to its subprojects.

This depends of https://github.com/numenta/nupic.core/pull/47