fixed va_list usage for different implementations of it