Fix compiler warnings.
Set maximal variadic template parameters to 6 to fix compilation with Visual C++