Applied patches from Mattias Ellert  (ROOT-6506) concerning unknown options on old gcc compilers.