Added missing stdexcept include.