Added stdexcept header dependency.