I would have thought that the Gates foundation was an excellent example of how to spent money well: after an enormous amount of research on determining what problems are priorities, and the most efficient (in terms of bang per buck) ways to fix them. I think it is probably best to not look at it through a capitalist or libertarian lens, and actually look at where the money is going, what it is doing, and how effectively it is doing it.