Add support for finding load time warnings

Extraction of the supporting code from rspec/rspec-core#1654.
Just a nit pick but this is a reallllly long line...