I first came across this idea in an excellent book by Olle Haggstrom: "Here Be Dragons: Science, Technology and the Future of Humanity", which talks more generally about large scale/long term problems for humanity.
It is the only book I know of that takes a comprehensive view of a variety of such issues (climate change, extraterrestrials, strong AI, etc) and is written in a scientific manner with numerous citations, and little to no empty statements as is typically found in "popular" books.