Applied a few cmake updates from TC. Should fix the blank version hash inside the core.

Signed-off-by: SkyFire <admin@projectskyfire.org>