khash.h optimizes more.

I tried to reduce malloc.
'benchmark\ao-render.rb' is about 10% faster in my PC.