fix warnings found by clang 3.5 and c++11 (fixes ROOT-5899).

Still auto_ptr deprecation has to be tackled.