fix CMake for multiplatform versioning
Merge pull request #141

b92a8b5 fix CMake for multiplatform versioning (Riccardo Spagni)