fixing some issues with iOS build