build: Get typelib dir dynamically using gobject-introspection dependency
We hardcoded the typelib directory for only an arch, while we can just get it from gobject-introspection pkg config if tests are enabled, as this is required anyways for generating the introspection anyways.