add -g option to complie ktap tool

Otherwise we cannot get file/line info when ktap coredumps
use "unsigned int" in table hashnum

A bug found like below:

x = {}
x[-1] = 1

Then there will have coredump in ktap tool,
because hashnum(-1) = -1, so we need to convert to unsigned int
before pass to hashnum macro