Add missing #include <stdexcept>