fixing various xcode warnings