a2065: compilation fix

(using DECLARE_MEMORY_FUNCTIONS, added _lgeti, _wgeti prototypes)