fix va_list usage bug on linux