Adds missing #include <stdexcept>