Add stdexcept to basic.h.