Fix a few more places where TargetData/TargetLibraryInfo is not being passed.