changes to enable build for iOS