Include version info for methods in GAPI XML output

to enable the generation of bindings that respect the different
library versions, in which methods have been introduced or
declared deprecated.