buffer: include <stdexcept> [Debian Wheezy]

This is needed for std::runtime_error in some c++ library
implementations.