Adding include for stdexcept.