fixed ios static compilation