include cstddef for ptrdiff_t

It doesn't compile without cstddef on debian wheezy and gcc 4.7.