macos: add support for relocations
Relocation is a common scenario in macOS applications and frameworks. This commit provides a mechanism to support relocations by inferring the typelib dir from the path of the loaded image libgirepository-1.0.dylib.