fix for compiling ROOT with an alternative gcc (e.g. 4.8.1), ROOT-5496, ROOT-5493.