CMake: Fix version setup
Restore KDEVPHP_VERSION_* vars so our scripts can bump them. Also make sure KDEVPLATFORM_VERSION is populated before being used.