Fixed error when building for iOS