cmake fix for multiplatform.