CMake updated to compile "nupic.core" in a independent way