a2065: compilation fix

(using DECLARE_MEMORY_FUNCTIONS, added _lgeti, _wgeti prototypes)
I found:
newbank->name = my_strdup (tmp);
in debug.cpp, but I don't see where it is freed. The compiler should have thrown an error too if it was freed somewhere...