Introduce libvmi_extra.h for exposing functions that require GLib

Splitting this work from the other PR as it is not strictly relevant.