BUILD: tools: make resolve_sym_name() return a const

Originally it was made to return a void* because some comparisons in the
code where it was used required a lot of casts. But now we don't need
that anymore. And having it non-const breaks the build on NetBSD 9 as
reported in issue #728.

So let's switch to const and adjust debug.c to accomodate this.
diff --git a/src/debug.c b/src/debug.c
index e1a07f0..e173f42 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -98,7 +98,7 @@
 		struct buffer bak;
 		void *callers[100];
 		int j, nptrs;
-		void *addr;
+		const void *addr;
 		int dump = 0;
 
 		nptrs = my_backtrace(callers, sizeof(callers)/sizeof(*callers));