Fix most of the iOS compile errors