Have Range::overlapsWith use positive logic

Improved test to catch missing case.
Changed LLVM configure options to reflect the new
way of making LLVM not rely on terminfo.
Avoid errors on header guards using #if defined(NAME).