kgdb: fix signedness mixmatches, add statics, add declaration to header