Fixed compilation error in NSString after the AutoCloseable interface was removed from NSObject. (#289)