Fix TTreeCache::SetEntryRange to properly take into account learning phase.

This is a tweak on commit 475165c0e15ed5019c2ce675650435b829d0a03f and fixes
the issue ROOT-6103.
Do not hard code the X11 include directory