gallivm: Add helpers for creating and destroying TargetLibraryInfo