Don't use local type as template argument.
fix to pass search path for alternative gcc compiler and toolchain (ROOT-5384).