Fix darwin, ios builds