Made build compatible with ROOT-6, dropped support for ROOT-5