fixes for IOS and frameworks