Using length field of the buffers returned by GSS API (fixes issue #17).
Always check return value of asprintf() (fixes warnings by recent compilers).