Added stdexcept header that is needed on linux but not mac