set cmake minimum version to 3.0 for iOS only, and 2.8 for other platforms