Gio: adapt to API change of InputStream.[read|read_all|read_async]

Upstream added annotation which hide buffer size argument, which
changed API.  Modify sample accordingly, and add compatibility layer
which allows running this API change even on older glib versions
without that annotation.

https://github.com/pavouk/lgi/issues/59