Fix incompatibilities with older C++ compilers that don't support std::conditional, std::next, std::prev, or std::move. Tested:   blaze build --config=android_arm :app_kokoro   blaze test   :cpp11_thread_test :pthread_thread_test :future_test \       :future_manager_test  :intrusive_list_test
Fix incompatibilities with older C++ compilers that don't support
std::conditional, std::next, std::prev, or std::move.
Tested:
  blaze build --config=android_arm :app_kokoro
  blaze test   :cpp11_thread_test :pthread_thread_test :future_test \
      :future_manager_test  :intrusive_list_test

PiperOrigin-RevId: 269682693

firebase/firebase-cpp-sdk,firebase/firebase-cpp-sdk,firebase/firebase-cpp-sdk,firebase/firebase-cpp-sdk,firebase/firebase-cpp-sdk,firebase/firebase-cpp-sdk,firebase/firebase-cpp-sdk,firebase/firebase-cpp-sdk