a2065: compilation fix

(using DECLARE_MEMORY_FUNCTIONS, added _lgeti, _wgeti prototypes)
memwatch_reset() frees it. But this is debugger stuff, it is not even supposed to be perfect :)