Decoupling core from GL stuff.
Merge pull request #5 from ricortiz/FixCMakeBuild

Decoupling core from GL stuff.