fix CMake for multiplatform versioning