Remove unused function

that would require us to include link.h
Make declaration match the definition
Make code buildable with gcc instead of g++
Introduce symbol versioning

via a symbols file
Bump the soname to 7 once

since the C++ versions used up to 6. We'll use symbol versioning from
now one.

AC magic from libvirt-glib.