glib: make all DllImports use a common const

This way there's less redundancy, and if lib name or version changes
in the future, it will be changed only in one place.