fix unused function warnings in clang 3.4

It seems that clang has started (since 3.4) throwing warnings about unused
functions that are generated by macros.
We were spewing loads of these warnings due to the khash.h library which builds
functions based on the type of the hash.