More changes to the build in oder to have it build only core library.
Merge pull request #4 from ricortiz/FixCMakeBuild

More changes to the build in order to make it build only core library.