Adds missing include for stdexcept.