Changed to conditional compilation based on iOS version