Fixes cases where stdexcept include was missing.

Why the hell did it even compile on the other machine?!